﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AutoFillCenter
{
    public class AutoFillFactory
    {
        public const String YAHOO = "yahoo";
        public const String GTALK = "gtalk";
        public const String SKYPE = "skype";
        public const String IE = "ie";
        public const String MISC = "misc";        

        public static AutoFill getAutoFill(String str)
        {
            switch (str)
            {
                case AutoFillFactory.YAHOO:
                    return new YahooAutoFill();
                case AutoFillFactory.GTALK:
                    return new GTalkAutoFill();
                case AutoFillFactory.SKYPE:
                    return new SkypeAutoFill();
                case AutoFillFactory.MISC:
                    return new KeyAutoFill();
                default:
                    return new KeyAutoFill();
            }
            return new AutoFill();
        }
    }
}
